Bug 663605 - Fix event->state of many event types on quartz
authorMichael Natterer <mitch@gimp.org>
Tue, 8 Nov 2011 20:41:19 +0000 (21:41 +0100)
committerMichael Natterer <mitch@gimp.org>
Tue, 8 Nov 2011 20:52:49 +0000 (21:52 +0100)
commit264241eb1165ace7ffefe70940fa596d372eb132
tree45522997c4262d4f8d3b0baf5eeb500854d016c3
parent28d3d6e0399dc1d09328308ad196ca4eca7e9348
Bug 663605 - Fix event->state of many event types on quartz

Don't try to remember the current keyboard modifier and mouse button
states from the last event, because that isn't always right, and don't
set event.state = 0 for generated events. Instead, add private functions
to get the current states, and implement them with API that retrieves
these states independently from an event.
gdk/quartz/gdkevents-quartz.c